/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.xmlepf.xml.adapter.saxon;

import net.sf.saxon.om.NodeInfo;
import org.xmlepf.xml.adapter.XMLNode;

/**
 *
 */
public class XMLNodeImp implements XMLNode{
    
    NodeInfo xmlNode;
    
    public XMLNodeImp( Object nodeInfo ) {
        xmlNode = (NodeInfo) nodeInfo;
    }

    @Override
    public String getLocalPart() {
        return xmlNode.getLocalPart();
    }

    @Override
    public String getStringValue() {
        return xmlNode.getStringValue();
    }

    @Override
    public Object getNativeNode() {
        return xmlNode;
    }
    
}
